<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<html>
<body>
<h2>Hello World!</h2>

<form action="<%= request.getContextPath() %>/registerUser"
      method="post">
    用户名：<input type="text" name="username"/><br/>
    密&nbsp;&nbsp;&nbsp;码：<input type="password" name="password"/><br/>
    <input type="submit" value="注册"/>
</form>

<form action="<%= request.getContextPath() %>/getProducts" method="post">
    <table width="220px" border="1">
        <tr>
            <td>选择</td>
            <td>商品名称</td>
        </tr>
        <tr>
            <td>
                <input name="proIds" value="3" type="checkbox"></td>
            <td>SSM框架实战</td>
        </tr>
        <tr>
            <td>
                <input name="proIds" value="32" type="checkbox"></td>
            <td>SSM框架实战1</td>
        </tr>
        <tr>
            <td>
                <input name="proIds" value="31" type="checkbox"></td>
            <td>SSM框架实战2</td>
        </tr>
    </table>
    <input type="submit" value="提交商品"/>
</form>

<form action="<%= request.getContextPath() %>/findOrderWithUser" method="post">
    所属用户：<input type="text" name="username"/><br/>
    订单编号：<input type="text" name="order.orderId"/><br/>
    <input type="submit" value="查询"/>
</form>

<form action="<%= request.getContextPath() %>/showOrders" method="post">
    <table width="220px" border="1">
        <tr>
            <td>订单号</td>
            <td>订单名称</td>
            <td>配送地址</td>
        </tr>
        <tr>
            <td><input name="orders[0].orderId" value="1" type="text"></td>
            <td><input name="orders[0].orderName" value="Java基础教程" type="text"></td>
            <td><input name="address[0]" value="北京海淀" type="text"></td>
        </tr>
        <tr>
            <td><input name="orders[1].orderId" value="2" type="text"></td>
            <td><input name="orders[1].orderName" value="Java进阶" type="text"></td>
            <td><input name="address[1]" value="湖南长沙" type="text"></td>
        </tr>
    </table>
    <input type="submit" value="订单信息"/>
</form>

<form action="<%= request.getContextPath() %>/orderInfo" method="post">
    <table border="1">
        <tr>
            <td colspan="2">
                订单id:<input type="text" name="orderId" value="1"></td>
        </tr>
        <tr>
            <td>商品Id</td>
            <td>商品名称</td>
        </tr>
        <tr>
            <td><input name="productInfo['生鲜'].proId" value="1" type="text">
            </td>
            <td><input name="productInfo['生鲜'].proName" value="三文鱼" type="text"></td>
        </tr>
        <tr></tr>
    </table>
    <input type="submit" value="提交"/>
</form>

</body>
</html>
